export default {
  namespace: 'notice',

  state: {
    unRead: 0, // 未读消息
  },

  effects: {},

  reducers: {
    setNumber(state, { payload }) {
      return {
        ...state,
        unRead: parseInt(payload, 10),
      };
    },
  },
};
